<?php

require_once 'web.php';

/**
 * Description of HomeController
 *
 * @author user
 */
class HomeController extends WebController {

    public function __construct() {
        parent::__construct();

        $this->view = View::factory('view');
    }

    function index() {
    }

    function login() {
        if (isset ($_POST['username'])) {
            print_r($_POST);
        }

        $this->view->content = View::factory('home/login');
    }

    function register() {
        $this->view->content = "register";
    }

}

?>
